package net.begincode.admin.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

/**
 * 管理controller
 */
@Controller
@RequestMapping("/admin/manage/")
public class ManageController {
    /**
     * 用户管理
     * */
    @RequestMapping("user")
    public ModelAndView user(){
        ModelAndView modelAndView = new ModelAndView();
        modelAndView.setViewName("user_manage");
        return modelAndView;
    }
    /**
     * 博文管理
     * */
    @RequestMapping("blog")
    public ModelAndView blog(){
        ModelAndView modelAndView = new ModelAndView();
        modelAndView.setViewName("blog_manage");
        return modelAndView;
    }
    /**
     * 关键字管理
     * */
    @RequestMapping("keywords")
    public ModelAndView keywords(){
        ModelAndView modelAndView = new ModelAndView();
        modelAndView.setViewName("keywords_manage");
        return modelAndView;
    }

}
